﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BaseMain.Master" AutoEventWireup="true" CodeBehind="WorkerInfo.aspx.cs"
    Inherits="DepartmentSystem.WorkerInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div>
        <h1>职工信息列表</h1>
        <hr />
        <div style="position: relative; width: 100%; ">
            <div style="position: absolute; width: 270px; height: 35px;" class="input-group">
                <asp:Label ID="Label2" class="input-group-addon" runat="server" Text="职工号"></asp:Label>
                <asp:TextBox ID="TextBox1" class="form-control" Style="width: 200px" placeholder="职工号" runat="server"></asp:TextBox>
            </div>
            <div style="position: absolute; left: 280px;" class="input-group ">
                <asp:Label ID="Label3" runat="server" class="input-group-addon" Text="职工名"></asp:Label>
                <asp:TextBox ID="TextBox2" Style="width: 200px" class="form-control" placeholder="职工名" runat="server"></asp:TextBox>
            </div>
            <div style="position: absolute; left: 560px; ">
                <asp:Button ID="Button1" style="height: 35px;" class="btn btn-primary" runat="server" Text="搜索" OnClick="Button1_Click1" />
            </div>
        </div>
        <hr />
        <hr />
        <hr /> 
        <hr />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="workerNum"
            OnRowDeleting="GridView1_RowDeleting"
            OnRowEditing="GridView1_RowEditing"
            OnRowCancelingEdit="GridView1_RowCancelingEdit"
            OnRowUpdating="GridView1_RowUpdating1" Style="width: 1200px;" class="table table-striped table-hover">
            <Columns>
                <asp:BoundField HeaderText="职工号" DataField="workerNum" ReadOnly="True" />
                <asp:BoundField HeaderText="姓名" DataField="workerName" />
                <asp:BoundField HeaderText="年龄" DataField="age" />
                <asp:BoundField HeaderText="月工资" DataField="wage" />
                <asp:BoundField HeaderText="部门号" DataField="deptNum" />
                <asp:BoundField HeaderText="电话" DataField="phoneNum" />
                <asp:BoundField HeaderText="办公室" DataField="office" />

                <asp:CommandField HeaderText="修改" ShowEditButton="True" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="true" />
            </Columns>
        </asp:GridView>
    </div>

</asp:Content>

